<!DOCTYPE html>
<html>
    <head>
        <script src="vue.js"></script>
    </head>
    <body>
        <div id="app">
            <my-parent name="title"></my-parent>
        </div>
        <script>
            Vue.component('my-parent',{
                props : ['name'],
                template : '<div>我是父组件的{{name}} (属性值) </div>'
            });

            var vm = new Vue({
                el:'#app'
            });
        </script>
    </body>
</html>